{% extends "topic.html" %}
{% block pageName %}BioVenturist Disease{% endblock %}

{% block queryScriptTopic %}
<script type="text/javascript" src="/bvapp/static/js/disease_read.js"></script>
<script type="text/javascript" src="/bvapp/static/js/disease_write.js"></script>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>

<script language="javascript" type="text/javascript">

google.load("visualization", "1", {packages:["table"]});
google.load("visualization", "1", {packages:["columnchart"]});

function load_info() {
	perform_touch('{{ domain_used }}');
	
	var url_read = "http://{{ domain_used }}/api/service/mqlread";
	var url_write = "http://{{ domain_used }}/api/service/mqlwrite";
	
	//var type = '{{ bioventurist_domain }}'+'bv_medical_condition';
	//var matchType = '/medicine/disease';
	//test_type(url_read, '{{ domain_used }}', __DISEASE__NAME__, type,matchType,'disease');
	var topic_id = parseTopicID("{{ topic_id }}")
	get_content(url_read, url_write, '{{ domain_used }}','{{ bioventurist_domain }}', topic_id);
}

</script>
{% endblock %}

{% block col2_container %}
	<div id="topic_logo"><img src="" alt="" name="thumb" align="middle" id="thumb" /></div>
	<div id="title"><span id="title"></span></div>
	<div id="page_type">(Disease)</div> <!-- page_type -->
    {% if not user.is_authenticated %} 
		<div id='completion_score'></div>
	<br></br><br></br>
	{% else %}
		<div id='completion_score_login'></div>
	{% endif %}
	
	<div id="page-wrap"></div>
{% endblock %}

{% block tabs %}

<div id="tabbed-container">

    <ul>
        <li><a href="#Breakdown"><span>Breakdown</span></a></li>
        <li><a href="#Edit"><span>Edit</span></a></li>
    </ul>
    <div id="Breakdown">
		<div>
			<h1><span>Overview</span></h1>
			<hr></hr>
			<div id="description"></div>	
			<h1><span>Condition</span></h1>
			<hr></hr>
			<div id="parentDiseases"></div>						
			<div id="subDiseases"></div>			
	    	<div id="symptoms"></div>
	    	<div id="treatments"></div>
	    	<div id="stages"></div>
	    	<div id="survivalH"></div>
	    	<div id="survivalTable"></div>
	    	<br></br>
			<h1><span>Companies and Products Involved</span></h1>
			<hr></hr>
			<div id="company_header"></div>
			<div id="company_div"></div>
			<div id="h_TherMarket"></div>
			<div id="productSalesThera_div"></div>
			<br></br>
			<div id="companySalesThera_div"></div>	        
			<br></br>
			<div id="theraMarket_div"></div>
			<br></br>
			<div id="h_TherDiv"></div>
			<br></br>
			<div id="theraDev_div"></div>
		</div>
	</div>
	<div id="Edit">
	    {% if user.is_authenticated %} 
		<br></br>  
		<div id="edit_sync" align="center"></div>
		<br></br>
    	<h3> Overview</h3>
    	<br></br>
    	  <table >
		    <tr>
		      <td><strong>Overview</strong></td>
		      <td><div align="left" id="edit_overview"><span></span></div></td>
		    </tr>				  
		  </table>
		<br></br>
    	<h3>Related Diseases</h3>
    	<br></br>
 		<table >
		    <tr>
		      <td><strong>Parent Disease</strong></td>
		      <td><span id="span_parent_medical_condition"></span></td>
		    </tr>
		    <tr>
		      <td><strong>Diseases Invovled</strong></td>
		      <td><div align="left" id="span_medical_condition_subclass"><span></span></div></td>
		    </tr>
		  </table>
		<br></br>      	
    	<h3>Companies Involved</h3>
    	<br></br>
	  	  <table >
		    <tr>
		      <td><strong>Companies</strong></td>
		      <td><div align="left" id="span_company_involved"><span></span></div></td>
		    </tr>
		  </table>
		<br></br>
		<!--       	
    	<h3>Condition</h3>
    	<br></br>
	  	  <table>
		    <tr>
		      <td><strong>Symptoms</strong></td>
		      <td><div align="left" id="span_symptoms"><span></span></div></td>
		    </tr>
		    <tr>
		      <td><strong>Treatments</strong></td>
		      <td><div align="left" id="span_treatments"><span></span></div></td>
		    </tr>
		  </table>
		 -->
		<br></br>      	
  		<div id="freebase_redirect"></div>
  		{% else %}
            <li><a href="{% url django.contrib.auth.views.login %}">(Login to edit)</a></li> 
        {% endif %} 		    
	</div>

</div>

		
{% endblock %}		
